const path = require('path')
function resolve(dir) {
    return path.join(__dirname, dir)
}

module.exports = {
  productionSourceMap: false,
  outputDir: 'dist',
//   publicPath: process.env.NODE_ENV === 'production' ? '/vant-demo/' : '/',
publicPath:  './',
  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    name: "name",
    resolve: {
        alias: {
            // 设置@/的意义
            '@': resolve('src'),
            // '@assets': resolve('assets'),
        }
    }
}
};
